<template>
  <view class="content">
    <uni-search-bar placeholder="请输入" clearButton="auto" cancelButton="none" @confirm="search" />

    <div class="hello">
      <h1>{{ $t('message.hello') }}</h1>
    </div>
  </view>
</template>

<script setup lang="ts">
function search(res:string) {
  console.log('search:',res);
}


</script>

<style>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20rpx;
}

</style>
